package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PtfInterfaceGroupMapper;
import com.ruoyi.system.domain.PtfInterfaceGroup;
import com.ruoyi.system.service.IPtfInterfaceGroupService;

/**
 * 接口组Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-20
 */
@Service
public class PtfInterfaceGroupServiceImpl implements IPtfInterfaceGroupService 
{
    @Autowired
    private PtfInterfaceGroupMapper ptfInterfaceGroupMapper;

    /**
     * 查询接口组
     * 
     * @param groupId 接口组主键
     * @return 接口组
     */
    @Override
    public PtfInterfaceGroup selectPtfInterfaceGroupByGroupId(Long groupId)
    {
        return ptfInterfaceGroupMapper.selectPtfInterfaceGroupByGroupId(groupId);
    }

    /**
     * 查询接口组列表
     * 
     * @param ptfInterfaceGroup 接口组
     * @return 接口组
     */
    @Override
    public List<PtfInterfaceGroup> selectPtfInterfaceGroupList(PtfInterfaceGroup ptfInterfaceGroup)
    {
        return ptfInterfaceGroupMapper.selectPtfInterfaceGroupList(ptfInterfaceGroup);
    }

    /**
     * 新增接口组
     * 
     * @param ptfInterfaceGroup 接口组
     * @return 结果
     */
    @Override
    public int insertPtfInterfaceGroup(PtfInterfaceGroup ptfInterfaceGroup)
    {
        return ptfInterfaceGroupMapper.insertPtfInterfaceGroup(ptfInterfaceGroup);
    }

    /**
     * 修改接口组
     * 
     * @param ptfInterfaceGroup 接口组
     * @return 结果
     */
    @Override
    public int updatePtfInterfaceGroup(PtfInterfaceGroup ptfInterfaceGroup)
    {
        return ptfInterfaceGroupMapper.updatePtfInterfaceGroup(ptfInterfaceGroup);
    }

    /**
     * 批量删除接口组
     * 
     * @param groupIds 需要删除的接口组主键
     * @return 结果
     */
    @Override
    public int deletePtfInterfaceGroupByGroupIds(Long[] groupIds)
    {
        return ptfInterfaceGroupMapper.deletePtfInterfaceGroupByGroupIds(groupIds);
    }

    /**
     * 删除接口组信息
     * 
     * @param groupId 接口组主键
     * @return 结果
     */
    @Override
    public int deletePtfInterfaceGroupByGroupId(Long groupId)
    {
        return ptfInterfaceGroupMapper.deletePtfInterfaceGroupByGroupId(groupId);
    }
}
